<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;


Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('userManagement', 'GrUserController');
    $router->resource('member', 'VipController');

    $router->resource('groupGoods', 'StoreCombinationController');
    $router->resource('groupList', 'StorePinkController');

    // 分步表单
    $router->get('form/step/preview', 'StoreCombinationController@preview');
    $router->get('form/step', 'StoreCombinationController@index');
    $router->post('form/step', 'StoreCombinationController@store');

    $router->resource('grade', 'GrUserLevelController');
    //会员权益
    $router->resource('memberType', 'GrMemberRightController');
    //卡密会员
    $router->resource('cardMember', 'GrMemberCardController');
});
